Ceil and Floor Functions in Python